package 泛型;

// <T> 跟在类名称后面
public class Holder3<T> {
	private T a;

	private Holder3(T a) {
		this.a = a;
	}

	public void set(T a) {
		this.a = a;
	}

	public T get() {
		return this.a;
	}

	public static void main(String[] args) {
		Holder3<AutoMobile> h3 = new Holder3<AutoMobile>(new AutoMobile());
		AutoMobile a = h3.get();
		System.out.println(a);

	}
}
